package com.wen.commandMode;

/**
 * 具体命令实现类  一般有多少个命令就有多少个这个
 */
public class ConcreteCommand implements Command{
    private Receiver receiver;
    public ConcreteCommand(Receiver receiver){
        this.receiver = receiver;
    }

    @Override
    public void execute() {
        System.out.println("Let's start dance");
        receiver.dance();
    }
}
